import React from 'react'
import './index.scss'

const Tab = props =>(
<header>
        {props.backFlag &&  <i 
        className="fas fa-angle-left"
        onClick = { ()=>{ props.history.goBack() } }
        ></i>}
        <h3>{ props.title }</h3>
    </header>
)

export default Tab